#define MSFIFO_C
#include <sys/types.h>
#include <sys/stat.h>		//mkdir()
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libmslog/mslog.h>
#include <libmscommon/mscommon.h>
#include <libmscommon/msfifo.h>
#include <libmscommon/msnetframe.h>

#define FLAG "MEMRY_TEST"

static ms_bool flag_end=ms_false;


void* msthrad_func(void* arg) 
{
	msmem_api_test();
	flag_end=ms_true;
}

int main(void)
{
	mslog_api_init( 53, ms_null,ms_null, ms_null);
	MSTHREADContext msthread_ctt;
	msthread_api_create(&msthread_ctt, "msmem_api_test", msthrad_func, ms_null);
	while(1){
		if(ms_true==flag_end){
			break;
		}
	}
	msthread_api_destroy(&msthread_ctt);
	sleep(10);
	exit(0);
}
#undef MSFIFO_C
